import request from '@/sheep/request';

const ImportDayApi = {
  // 查询联系事件
  queryContactEvents: (data) => {
    return request({
      url: '/relation/contact/queryContactEvents',
      method: 'POST',
      data,
      custom: {
        auth: true
      },
    });
  },
  // 删除联系事件
  deleteContactEvent: (data) => {
    return request({
      url: '/relation/contact/deleteContactEvent',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '删除成功'
      },
    });
  },
  // 添加或更新联系事件
  addOrUpdateContactEvent: (data) => {
    return request({
      url: '/relation/contact/addOrUpdateContactEvent',
      method: 'POST',
      data,
      custom: {
        auth: true,
        successMsg: '设置成功'
      },
    });
  },

};

export default ImportDayApi;
